<!--上传组件-->
<template>
  <div class="csj-upload">
    <div class="csj-upload-content" @click="fileclick">
      <input type="file" ref="ccuiFile" @change="uploadfile" />
      <input type="hidden" v-text="(imgUrl = value)" :value="imgUrl" />
      <slot></slot>
    </div>
    <image-clipper
      v-if="isImageClipper"
      :title="title"
      :imgUrl="clipperImgUrl"
      :isHead="isHead"
      :maxScale="maxScale"
      :scale="scale"
      @confirm="confirm"
      @cancel="cancel"
      :width="width"
      :height="width"
    ></image-clipper>
  </div>
</template>
<script lang="ts" src="./upload.ts"></script>
